package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.Invoice;
import com.neuedu.his.mapper.InvoiceMapper;

@Service
@Transactional
public class InvoiceServiceImpl implements InvoiceService{

	@Autowired
	private InvoiceMapper dao;
	@Override
	public List<Invoice> selectAll(Invoice u) {
		// TODO Auto-generated method stub
		return dao.selectAll(u);
	}

	@Override
	public Invoice selectById(Invoice u) {
		// TODO Auto-generated method stub
		return dao.selectById(u);
	}

	@Override
	public int add(Invoice u) {
		// TODO Auto-generated method stub
		return dao.add(u);
	}

	@Override
	public int delete(Invoice u) {
		// TODO Auto-generated method stub
		return dao.delete(u);
	}

	
}
